<div class="right">
	<div id="columns1">
<div class="nav">
<form action="<?=$this->config->item('site_url');?>vid/browser" method="post" onsubmit="return selectdatesearch();" name="date_search_form">
	<ul>
		<li <?php if ($search_day ==0){ ?>class="current" <?php } ?> ><span><a href="<?=$this->config->item("site_url");?>vid/browser">今日</a></span></li>
        <li <?php if ($search_day ==1){ ?>class="current" <?php } ?>><span><a href="<?=$this->config->item("site_url");?>vid/browser?search_day=1">昨日</a></span></li>
		<li <?php if ($search_day ==7){ ?>class="current" <?php } ?>><span><a href="<?=$this->config->item("site_url");?>vid/browser?search_day=7">最近七天</a></span></li>
		<li <?php if ($search_day ==30){ ?>class="current" <?php } ?>><span><a href="<?=$this->config->item("site_url");?>vid/browser?search_day=30">最近三十天</a></span></li>
		<li><span>从</span></li>
		<li><span class="demo"><input type="text" size="10" maxlength="8" readonly="readonly" value="<?=$search_sdate?>" id="datepicker" name="search_sdate"></span></li>
		<li><span>到</span></li>
		<li><span class="demo"><input type="text" id="datepicker1" size="10" value="<?=$search_edate?>" maxlength="8" name="search_edate"></span></li>
		<li class="lineNone"><span><input type="button" value="查看" style="border: 1px #FFFFFF solid; background: #efefef;style=cursor:pointer" onclick="selectdatesearch()"></span></li>
	</ul>
</form>	
</div>
		<ul id="column2" class="main">
			<li class="widget1 color-green1" id="widget12">
				<div class="widget1-head">
					<h3>
						地区分布统计分析图
					</h3>
				</div>
		<div id="chartdiv" class="widget1-content" style="'height: 230px;" ></div>
        </li>
			<li class="widget1 color-green1" id="widget13">
				<div class="widget1-head">
					<h3>地区分布</h3>
				</div>
				<div class="widget1-content">
					<table cellspacing="0" cellpadding="0">
						<tr>
							<th>序号</th>
							<th>名称</th>
							<th>来访次数</th>
							<th>访客数</th>
							<th>新访客</th>
							<th>人均浏览次数</th>
							<th>平均停留时间(s)</th>
						</tr>
						<?php 
							if($data){
								$i=0;
								foreach($data as $key=>$res):
								$i++;
								?>
                                
							<tr>
								<td><?=$i?></td>
								<td><?=$key?></td>
								<td><?=$res['total_arrive']?></td>
								<td><?=$res['vidCount']?></td>
								<td><?=$res['isnew']?></td>
								<td><?=$res['avg_arriveCount']?></td>
								<td><?=$res['avg_stopTime']?></td>
							</tr>
						<?php endforeach; }else{?>
                        	<tr>
								<td colspan="8" align="center" style="text-align:center"> <font color="red">无数据</font> </td>
                             </tr>
                        <?php } ?>
					</table>
	</div>
	</li>
	</ul>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="<?=$this->config->item('chart_url');?>JSClass/FusionCharts.js"></script>
  <script type="text/javascript">
  $(document).ready(function(){
   var chart = new FusionCharts("<?=$this->config->item('chart_url');?>Charts/Doughnut2D.swf", "ChartId", "852", "350", "0", "0");
   chart.setDataXML('<?=$xml?>');
   chart.render("chartdiv");
});

</script>
<script type="text/javascript" src="<?=$this->config->item('js_url');?>date.js"></script>